const processes = require('./processes_data.json');

module.exports = {
    /**
     * Application configuration section
     * http://pm2.keymetrics.io/docs/usage/application-declaration/
     */
    apps: processes.apps,

    /**
     * Deployment section
     * http://pm2.keymetrics.io/docs/usage/deployment/
     */
    deploy: {
        dev: {
            user: "root",
            //host: "42.51.4.219",
            host: "118.31.2.90",
            ref: "origin/master",
            repo: "git@gitee.com:xcworld2018/taoke_api.git",
            path: "/home/taoke_data",
            "post-deploy": "npm install --production && pm2 startOrRestart ecosystem_data.config.js --env production"
        },
        pro: {
            user: "root",
            //host: "42.51.4.219",
            host: "118.31.2.90",
            ref: "origin/master",
            repo: "git@gitee.com:xcworld2018/taoke_api.git",
            path: "/home/taoke_data",
            "post-deploy": "npm install --production && pm2 startOrRestart ecosystem_data.config.js --env production"
        }
    }
}
